home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Mops 2.7 / Mops Manual / Part I.srd / Part I.srd.rsrc / PICT_69.png < prev    next >
Portable Network Graphic  |  1996-01-02  |  94KB  |  816x1056  |  8-bit (256 colors)
Labels: book | bulletin board | crt screen | monitor | poster | reckoner | sky
OCR: Lesson Global constants and values Assigning recognizable names to numbers is a convenient shortcut, as you've seen with named input paraneters and local variabl les But as you saw both of those kinds of names alocal they apply only to a very limited section of the program, inside definition or local section. But Mops also has provision called Value for signing readily identifiable names numbers such that they can be used throughout program Your program can contain many different values because you define each value by giving it a unique name and a number that it is to hold You define value like this: 25 value Jane In other words, the value named Jane is holding the number 25 To rec you do type the value name and copy of the numbe placed Jane and the number 25 placed uo the stack. value es ...